import MainLeftInfoViewUI = layaUI.MainLeftInfoViewUI;

class MainLeftInfoView extends MainLeftInfoViewUI{
    private static _instance:MainLeftInfoView;//单例
    /**
     * 获取 单例
     */
    public static getInstance():MainLeftInfoView{
        if(MainLeftInfoView._instance == null){
            MainLeftInfoView._instance = new MainLeftInfoView();
        }
        return MainLeftInfoView._instance;
    }

    constructor() {
        super();
    }

    public open():void{
        UIManager.uiLayer.addChild(MainLeftInfoView.getInstance());
    }

    public close():void{
        MainLeftInfoView.getInstance().removeSelf();
    }
}